package zdar.processing;

import java.util.Random;

import zdar.entities.Unit;

public class Ai {

	Unit unit;
	
	public Ai (Unit unit){
		this.unit = unit;
		
	}
	
	public void processTurn(CombatProcessor combatProcessor){
		// Choose a random action for now
		Random r = new Random();		
		int i = r.nextInt(unit.getActions().size());		
		combatProcessor.process(unit.getActions().get(i));
		
		// Eventually there should be a rating system for actions, but whatever.
		
		// End turn
		combatProcessor.endTurn();
	}
}
